<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../library/style.css" type="text/css" rel="stylesheet" />
<style type="text/css">
<!--
body {
	
	margin-top: 2px;
	margin-bottom: 0px;
}
-->
</style><table width="780" height="100%" align="center" cellpadding="0" cellspacing="2" class="box">
  <tr>    
	<td height="21" colspan="2" align="right" valign="top" ><marquee direction="left"><?php
	

	 echo "Xin chào  <font color=red>".@$_SESSION['ten']."</font>.Chúc bạn một ngày tốt lành!";?>
	</marquee></td>	
  </tr>
  <tr>
    <td width="20%" valign="top" class="menu"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="box">
      </table></td>
    <td width="82%" valign="top"><table width="100%" border="0" cellpadding="4" cellspacing="4" bordercolor="#FFFFFF">
        <tr>
<title>LIST SỰ KIỆN</title>
<?php
 @session_start();
 @$_SESSION['quyenuser'];
 
    include("model.php");
    $sukienModel = new suKien();
    $action = @$_GET["action"];   
	switch ($action)
     {                    
        case "view": // xem su kien
            $sukienModel->getSuKien();
            include_once("view_detail.php"); 
            break;
		
		case "add": // bo sung su kien
            $sukienModel->addSuKien();          
            break;
	    case "in":   // action add          
            $sukienModel->inSuKien();   
            break;
		case "xoa": // xoa su kien
		    $sukienModel->xoaSuKien();
			break;
	    case "sua": //sua su kien
          $sukienModel->suaSuKien();
           break;  
		 case "update": //sua su kien
          $sukienModel->updateSuKien();
           break;
		 case "dangky": //Đăng Ký
			 include('dangky.html');
           break; 
		 case "singup": //Đăng Ký
          include('dangky.php');
           break;  
        default: // trinh dien
	    $sukienModel->getListds();
		  include_once("index1.php");
     }
?>